﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using Lilium.UI.Controls;
using System.Windows.Forms;

namespace Lilium.UI.Forms
{
    public class ControlFactory: IControlFactory<System.Windows.Forms.Control>
    {
        #region IControlFactory<Control> Members

        public ControlWithAdapter<System.Windows.Forms.Control, ILabel> CreateLabel()
        {
            var label = new Label();
            var adapter = new LabelAdapter(label);
            return new ControlWithAdapter<System.Windows.Forms.Control, ILabel>(label, adapter);
        }

        #endregion
    }
}
